<?php

class Api{
    function get($req){
        $id = $req->auth["id"];
        $user = pt\db\Mysql::init()->row("select * from user where id = ? ",$id);

        $res = array(
            "mobile"=>$user['mobile'],
            "email"=>$user['email'],
            "name"=>$user['name'],
        );
        return $res;
    }
}
